package com.example.wan1.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.wan1.R;
import com.example.wan1.model.CoinSignInBean;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/***
 * 创建时间：2020/7/28 18:48
 * 创建人：10850
 * 功能描述：获取个人积分的适配器
 */
public class CoinListAdapter extends BaseQuickAdapter<CoinSignInBean, BaseViewHolder> {

    public CoinListAdapter(int layoutResId, @Nullable List<CoinSignInBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, CoinSignInBean coinSignInBean) {
        holder.setText(R.id.coin_item_tv, coinSignInBean.getDesc());
    }
}
